package com.cainli.szbus.log;

import android.util.Log;
/**
 * Clog's  C is means Cain
 * @author Lee
 *
 */
public class CLog {
	private static boolean isDebug = true;
	public static int v(String tag, String msg) {
		if(isDebug){
			return Log.v(tag, msg);
		}
		return 0;
	}

	public static int v(String tag, String msg, Throwable tr) {
		if(isDebug){
			return Log.v(tag, msg, tr);
		}
		return 0;
	}

	public static int d(String tag, String msg) {
		if(isDebug){
			return Log.d(tag, msg);
		}
		return 0 ;
	}

	public static int d(String tag, String msg, Throwable tr) {
		if(isDebug){
			return Log.d(tag, msg, tr);
		}
		return 0;
	}

	public static int i(String tag, String msg) {
		if(isDebug){
			return Log.i(tag, msg);
		}
		return 0;
	}

	public static int i(String tag, String msg, Throwable tr) {
		if(isDebug){
			return Log.i(tag, msg, tr);
		}
		return 0;
	}

	public static int w(String tag, String msg) {
		if(isDebug){
			return Log.w(tag, msg);
		}
		return 0;
	}

	public static int w(String tag, String msg, Throwable tr) {
		if(isDebug){
			return Log.w(tag, msg, tr);
		}
		return 0;
	}

	public static int w(String tag, Throwable tr) {
		if(isDebug){
			return Log.w(tag, tr);
		}
		return 0;
	}

	public static int e(String tag, String msg) {
		if(isDebug){
			return Log.e(tag, msg);
		}
		return 0;
	}

	public static int e(String tag, String msg, Throwable tr) {
		if(isDebug){
			return Log.e(tag, msg, tr);
		}
		return 0;
	}

}
